# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=gpodder-adaptive
pkgver=3.10.21
_plusver=1
pkgrel=1
pkgdesc="Podcast aggregator (adaptive version)"
url="https://github.com/gpodder/gpodder/tree/adaptive"
arch="all !s390x !riscv64" # blocked by adwaita-icon-theme
license="GPL-3.0-or-later"
depends="
	adwaita-icon-theme
	libhandy1
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-html5lib
	py3-mygpoclient
	py3-podcastparser
	py3-requests
	python3
	xdg-utils
"
makedepends="py3-setuptools intltool help2man"
checkdepends="py3-pytest py3-pytest-httpserver py3-pytest-cov py3-minimock desktop-file-utils"
subpackages="$pkgname-doc $pkgname-lang"
source="gpodder-adaptive-$pkgver+$_plusver.tar.gz::https://github.com/gpodder/gpodder/archive/refs/tags/adaptive/$pkgver+$_plusver.tar.gz
	0001-gtkui-fix-loading-of-cached-thumbnails.patch
	0002-gtkui-properly-scale-cover-pill-on-hires-displays.patch
	"
builddir="$srcdir/gpodder-adaptive-$pkgver-$_plusver"

check() {
	make unittest
}

package() {
	make install PREFIX=/usr DESTDIR=$pkgdir
}

sha512sums="
296ce9fcc65b11b93e9501f99ffc916632ea142c06fdba3cda87def177dc61ddf5901fef574eed0b8cda65c5c6f530a57707a2c7c2f2d9bf67c79d167be354b9  gpodder-adaptive-3.10.21+1.tar.gz
bad2742d3522cd3a9fdcc7ffe85df04620b865c4bb3a88a1149b3b07e2d1289751b10c7b53d3f2fc35f9c71c6eb92bc8306304ef7c74a230afb9dcf131ac637f  0001-gtkui-fix-loading-of-cached-thumbnails.patch
f939e46b627abfc5eec059879d4042cee0a9da146f265127f6634f24eb7da5588642323e79c264e4cee4acf0c9953a0bd8578eb56271327e04a3a46f9e4e297a  0002-gtkui-properly-scale-cover-pill-on-hires-displays.patch
"
